<html>
    <body>
        {% if api %} Added!!!
        <table border="1">
            <tr>
                <td>Name</td>
                <td>Email</td>
                <td>ApiKey</td>
                <td>SecretKey</td>
                <td>Enabled</td>
                <td>Edit</td>
                <td>Delete</td>
            </tr>
            <tr>
                <td>{{ api.name }}</td>
                <td>{{ api.email }}</td>
                <td>{{ api.api_key }}</td>
                <td>{{ api.secret_key }}</td>
                <td>
                    <input type="checkbox" name="{{ api.api_key }}"
                    {% if api.enabled %} checked{% endif %} disabled>
                </td>
                <td><a href="/api_key/edit?key={{ api.key }}">Edit</a></td>
                <td><a href="/api_key/delete?key={{ api.key }}">Delete</a></td>
            </tr>
        </table>
        {% endif %}
        <form action="/api_key/add" method="post">
            <div>Name: <input type="text" name="api_name"/></div>
            <div>Email: <input type="text" name="api_email"/></div>
            <div>Enabled: <input type="checkbox" name="api_enabled" checked></div>
            <div><input type="submit" value="Add"></div>
        </form>
    </body>
</html>